<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="test">

</div>
<div id="demo_tag" class="template">
    <div id="tag_cloud">
        {%
            for (let i = 0; i < tagCloud.length; i++) {
                let ctx = tagCloud[i]; %}
                <a href="#" class="tag_item"
                {% if (ctx['is_selected']) { %}
                    selected
                {% } %}
                " title="{%=ctx["title"]%}">{%=ctx["text"]%}</a>
        {% } %}
    </div>
</div>
<script src="script.js"></script>
</body>
</html>